sum = 0
n = 0
xstr = input()
while xstr != "":
    x = float(xstr)
    sum = sum + x
    n = n + 1
    xstr = input()

print(n)
print(format(sum, ".2f"))
